<?php
namespace App\Models\Relations;

/**
 *
 * @author Joker
 *        
 */
trait CommonTrait
{
    /**
     * @param  $column 增加字段
     * @param  $amount 增加的数值
     */
    public function incrementAdd($column, $amount = 1)
    {
        $this->increment($column,$amount);
    }
    
    public function decrementDel($column,$account = 1) 
    {
        $this->decrement($column,$account);
    }
}